<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>文件管理</title>
	<link rel="stylesheet" href="./css/css/bootstrap.min.css">
	<style type="text/css">
		.jumbotron{
			padding: 20px;
		}
		.liu{
			width: 65px;
		}
		form{
			width: 320px;
			height: 80px;
			margin: 0 auto;
			position: relative;
		}
		#b{
			width:110px;
			height: 45px;
			float: left;
			position:relative;
			opacity: 0;
		}
		#a{
			position: absolute;
			left: 0px;
		}
	</style>
</head>
<body>
	<nav class="navbar navbar-inverse">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-9" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">文件管理</a>
        </div>
    </nav>
    <div class="jumbotron">
      <form action="./03-14.php" method="post" enctype="multipart/form-data">
      	<div id="a" class="btn btn-lg btn-success">选择文件</div>
      	<input id="b" type="file" name="file" class="btn btn-lg btn-success">
	    <input class="btn btn-lg btn-success" id='c' type="submit" value="上传">
      </form>
      <table class="table">
		 <thead>
			<tr>
				<th>#</th>
				<th>预览</th>
				<th>文件名</th>
				<th>大小</th>
				<th>类型</th>
				<th>时间</th>
				<th>操作</th>
			</tr>
			</thead>
			<?php foreach ($data as $k => $v) { ?>
				<tr>
					<th><?php echo $k; ?></th>
					<th><?php echo $v; ?></th>
					<th><?php echo basename($v) ?></th>
					<th><?php echo filesize($v) ?></th>
					<th><?php echo end($v) ?></th>
					<th>时间</th>
					<th>操作</th>
				</tr>
			<?php } ?>
      </table>
    </div>
</body>
</html>